package com.longteng.diamond.dao;


import com.longteng.diamond.domain.ScheduleJob;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * Created by Administrator
 * DATE : 2018/8/26
 * TIME : 1:07
 * PROJECT : java-lesson
 * PACKAGE : com.longteng.lesson
 *
 * @author <a href="mailto:taki@qq.com">Administrator</a>
 */
@Mapper
public interface QuartzMapper {

    /**
     * 查询定时任务
     * @param ScheduleJob
     * @return
     */
   public List<ScheduleJob> findQuartz(ScheduleJob ScheduleJob);

    /**
     * 查询定时任务通过id
     * @param id
     * @return
     */
    public ScheduleJob findScheduleJobById(Integer id);

    /**
     * 新增定时任务
     * @param scheduleJob
     * @return
     */
    public void addScheduleJob(ScheduleJob scheduleJob);

    /**
     * 修改定时任务
     * @param scheduleJob
     * @return
     */
    public void updateScheduleJob(ScheduleJob scheduleJob);

    /**
     * 删除定时任务
     * @param id
     * @return
     */
    public void deleteScheduleJobById(Integer id);
}
